import router, { resetRouter } from '@/router'
const state = {
  userInfo: '',
  token:''
}

const mutations = {
  SET_USERINFO: (state, userInfo) => {
    state.userInfo = userInfo
  },
  SET_TOKEN: (state, token) => {
    state.token = token
  }

}

const actions = {
//   resetToken({ commit }) {
//     return new Promise(resolve => {
//       commit('SET_TOKEN', '')
//       commit('SET_ROLES', [])
//       removeToken()
//       resolve()
//     })
//   },

}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
